'use strict';
exports = module.exports = function($scope, $timeout, throttleSubmit) {
    $scope.submitFun = throttleSubmit(function(){
        console.log('校验第1项')
        console.log('校验第2项')
        console.log('校验第3项')
        var param = 1;
        if ( param == 2 ) { return false }
        return param
    },function(enable, param){
        console.log('提交代码', param)
        $timeout(function(){
            console.log('提交成功')
            enable()
        },3e3)
    })
}
